package com.backend.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.web.client.RestTemplate;

/**
 * @Description:
 * @Author: tanglingyu
 * @CreateDate: 2024/7/1 10:53
 * @Version: 1.0
 */
@Configuration(proxyBeanMethods = false)
public class RestTemplateConfig {

  @Bean
  @Primary
  public RestTemplate restTemplate() {
    return new RestTemplate();
  }
}
